#include <UserAPI.h>
#include "VEXRobot.h"

//
// Reset for packet timeout
//
void CommunicationsTimeout(void)
{
   SetPWM(1, 127);
   SetPWM(2, 127);
   SetPWM(3, 127);
   SetPWM(4, 127);
   SetPWM(5, 127);
   SetPWM(6, 127);
   SetPWM(7, 127);
   SetPWM(8, 127);

#ifdef TIMER
   printf("!! Timeout of communications channel (%d)\n", GetTimer(1));
#endif
}

//
// We lost the carrier
//
void CommunicationsDisconnect(void)
{
   SetPWM(1, 127);
   SetPWM(2, 127);
   SetPWM(3, 127);
   SetPWM(4, 127);
   SetPWM(5, 127);
   SetPWM(6, 127);
   SetPWM(7, 127);
   SetPWM(8, 127);
#ifdef TIMER
   printf("!! Disconnect of communications channel (%d)\n", GetTimer(1));
#endif
}

//
// We are now connected
//
void CommunicationsConnect(void)
{
}
